home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / complib / from_window_variables.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-18  |  422 b   |  23 lines

  1. /*
  2. ### from window coords to primary coordinates ###
  3.  
  4. Input: vw: window coords
  5.     sw: 0=primary coords 1=secondary coords
  6. Output: vx: in primary coords
  7. NOTE: sw can be either polar_coord or polar_section
  8. */
  9.  
  10. from_window_variables(vx,vw,sw)
  11. double vx[],vw[];
  12. int sw;
  13. {
  14.     int i;
  15.     extern model,var_dim,enable_polar;
  16.  
  17.     if(enable_polar== 1 && sw == 1)
  18.             polar_to_euclid(vx,vw);
  19.     else {
  20.         for(i=0;i<var_dim;i++) vx[i]=vw[i];
  21.     }
  22. }
  23.